If you’re using some tool to package the script to exe, or something like that, you’ll probably have to contact the vendor for that tool. I’ve only done that once, at a customer’s request, and I forget which tool they used. I do remember that an extra command-line argument had to be used when running the packaged version (something like MyPackagedScript.exe -Arguments -UserName account -Path c:\path -Help . Everything after -Arguments was passed to the underlying script after it was extracted.)
↧