I am a very rookie in powershell, so pardon me if I am doing totally wrong. I have tried to understand it but its off my head,
I am trying to get this command to work to incorporate into my AWS provisioiner.
Add-Content C:\Windows\Setup\Scripts\SetupComplete.cmd “Powershell.exe -noexit -ExecutionPolicy Bypass “& ‘C:\users\administratordesktop\configure.ps1’””
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part
of a string."
If I wrap the ampersand in quotes I get
Add-Content : A positional parameter cannot be found that accepts argument 'C:\Windows\Setup\Scripts\SetupComplete.cmd '.