added powershell header and input validation