Powershell While Loop Syntax Matlab