This script is written to work with a graphical user interface. I will tell about creating GUI for it in the following posts. The idea of this script is quite simple. Get (using automatic variable $PSBoundParameters) all the parameters that were passed to the script, process them and pass to cmdlet on the remote machine. This method can be applied in any such scripts.