Powershell Create Loop Command Hooks