Convert Powershell Script To Bash Script