When calling a PowerShell script from another environment (e.g. Java) literal string arguments need to be passed as part of the process arguments.
How do I sanitize or escape user input that will be passed as string literal to a PowerShell call?
I couldn't find complete guidance anywhere.