Working on rewrite into module with correct powershell formating