Powershell Advanced Function Help Matlab