Copy and paste the following into a new Powershell ISE script and hit F5:
workflow workflow1{ \"in workflow1\" func1 } function func1 { \"in func
You could wrap the functions and their calls inside an InlineScript - which could be a per-system script. Then run that inlinescript inside a foreach -Parallel loop working through the systems you want to query.