#TodayILearned that you have to put a space between the curly bracket of a @Rundeck option and the normal bracket of Powershell
$(get-service -ComputerName srv1 -name ${option.ServiceName})
Otherwise you get:
Missing closing ‘)’ in subexpression. t.co/PyCuEOZ8A…