Updated powershell script to use the same flags as python