# Functions
Cmd builds a command-line for executing a complex command or script as an EncodedCommand through powershell.
CompressedCmd creates a scriptlet that will decompress and execute a gzipped script to both avoid command line length limits and to reduce data transferred.
DoubleQuote adds double quotes around a string and escapes any double quotes inside.
DoubleQuotePath adds double quotes around a string and escapes any double quotes inside.
EncodeCmd base64-encodes a string in a way that is accepted by PowerShell -EncodedCommand.
SingleQuote quotes and escapes a string in a format that is accepted by powershell scriptlets from jbrekelmans/go-winrm/util.go PowerShellSingleQuotedStringLiteral.
ToWindowsPath converts a unix-style forward slash separated path to a windows-style path.
# Constants
PipeHasEnded string is used during the base64+sha265 upload process.
PipeIsBeingClosed string is used during the base64+sha265 upload process.