Private/Set-MITSession.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# Private function to set the script-level session # variables needed for subsequent REST API calls. # Currently this in the token and hostname, but # could also include the refresh token. function Set-MITSession { [CmdletBinding()] param ( [string]$Hostname, [string]$Token ) $Script:MITHostname = $Hostname $Script:MITToken = $Token } |