$RestMethodParams = @{
    Method  = 'Post';
    Uri     = 'https://96bdfe01-af80-4575-8f23-e7057184c8f6.webhook.cus.azure-automation.net/webhooks?token=4cWZz%2fq97AqMdlNak6qv2lUurLPFsWmPJmovLmAE%2fNg%3d';
    Headers = @{ITD = 'mXJU74ABYyDHcVY6iJihPDk8LidJ2ibBA2sA3RAwKaBHS6Gw7Rr2Zz5JZAhPm6wMuvY7X54ZzJxAXaM7ig3PHG4MKvtkBf8X7q3jGNcePgUqg9WCwCSJ3JWG7AA6M39x4vpihKeZV' };
    Body    = [PSCustomObject]@{
        target_platform              = "VMware"
        target_hostname              = 'itdcndsperms.nd.gov';
        target_cpus                  = 1;
        target_memory                = 8;
        target_osdisk                = 100;
        target_datadisk              = 20;  # this is now swap
        target_subnet                = '10.221.8.0/28';
        target_os                    = 'Windows Server 2019 Datacenter';
        target_environment           = 'Production';
        target_vm_app_name           = 'Shared-PeopleSoft-State';
        target_datacenter            = 'Bismarck';
        target_licensingrestrictions = 'No Licensing Restrictions';
    } | ConvertTo-Json;
}
 
Invoke-RestMethod @RestMethodParams

$VMNames=@"
itdcndhftdb22.nd.gov
itdcndhhtdb22.nd.gov
"@
$VMNames = ConvertTo-Array -MultiLineString $VMNames

Invoke-Command -ComputerName $VMNames -Credential $PrvCred -ScriptBlock {
    Get-Process -Name ccmexec*,cohesity*,cortex*,nessus*,vmtoolsd*
} | sort-object PSComputerName