Changed scope back to source. It's perfectly legal to have a param block directly in the script
Changed scope to include both scriptblock and param