Convert Powershell To Bash Script