First of all I am a noob in terms of VBS. So of this question does not make sense, please bear with me.
I have created a PowerShell script that I wanted to be launched via .vbs file.
I have succesfully used this wrapper for this in the past.
dim EncodedCommand
EncodedCommand = "COMMAND"
pSCmd = "powershell.exe -noexit -windowstyle Hidden -executionpolicy bypass -encodedcommand " & EncodedCommand
CreateObject("WScript.Shell").Run pSCmd, 0, True
But as my 'project' grew, so did is size. It's currently sitting at 871443 characters after converting it base64 and I am presented with the error seen below.
Any help would be appreciated.
