The upload method shouldn't be specific to PowerShell scripts.