If you’re writing a script that takes parameters with the “param” statement/feature, don’t declare any variables before param. It will throw some weird errors! You can put variables in the Begin scriptblock instead.
If you’re writing a script that takes parameters with the “param” statement/feature, don’t declare any variables before param. It will throw some weird errors! You can put variables in the Begin scriptblock instead.