Convert Powershell Script To Bash Something