Creating A Script Using Powershell For Automation Direct