public/Start-EC2RemoteDesktop.ps1
function Start-EC2RemoteDesktop { [CmdletBinding(PositionalBinding = $false)] param( [Parameter(Mandatory = $false)] [string] $ProfileName, [Parameter(Mandatory = $false)] [ValidateSet('af-south-1', 'ap-east-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-northeast-3', 'ap-south-1', 'ap-south-2', 'ap-southeast-1', 'ap-southeast-2', 'ap-southeast-3', 'ap-southeast-4', 'ca-central-1', 'ca-west-1', 'eu-central-1', 'eu-central-2', 'eu-north-1', 'eu-south-1', 'eu-south-2', 'eu-west-1', 'eu-west-2', 'eu-west-3', 'il-central-1', 'me-central-1', 'me-south-1', 'sa-east-1', 'us-east-1', 'us-east-2', 'us-gov-east-1', 'us-gov-west-1', 'us-west-1', 'us-west-2')] [string] $Region ) Start-EC2RemoteDesktopInternal -ProfileName $ProfileName -Region $Region } Set-Alias -Value 'Start-EC2RemoteDesktop' -Name 'ec2r' Set-Alias -Value 'Start-EC2RemoteDesktop' -Name 'ec2rdp' Set-Alias -Value 'Start-EC2RemoteDesktop' -Name 'Start-EC2Remote' Set-Alias -Value 'Start-EC2RemoteDesktop' -Name 'Start-EC2RDP' |