Convert MFCOM scripts to PowerShell