The Script Packager™ provides you a means of easily distributing scripts (and any desired source files) in a secure manner.
References to where the script is running from, what command line parameters have been passed and the current user registry path for the executing user are dynamically provided via Windows environment variables that may be utilized in your script. See here for details.
Also See: