i wondered if i could call a function with a param that has been chosen from a list, then once the param has been chosen get the user to give it a value so it runs a certain script block?
Like most of the time: It depends. You have several options to make your function fit your needs. You could make your parameter mandatory - so the user has to provide a value. You could create different parameter sets - so the user has to chose one of it. Or you could …
If mandatory they would have to be declared even if the user doesn’t decide to use that param in the Function, which i do really want to do. ive not worked with parameter sets, can these be used to run differnt script blocks?
I can’t really be sure about requirements as your request is quite vague
You could create a ValidateSet and switch on that to do different things based on the input of $Do