1

i have a simple question! I want to run the powershell script but, I want a little different way.

how to run powershell script like the script below?

(python -c 'print "A"*100')

Is the PowerShell possible? In conclusion, I want to pass the powershell script with cmd argument like the... Powershell.exe -c '$test = 1; $socket = New-Object net.sockets.tcpclient('127.0.0.1',31337);'

0

1 Answer 1

2

try Something like this:

powershell.exe -File "C:\yourscriptfile.ps1" arg1 arg2 arg3
Sign up to request clarification or add additional context in comments.

1 Comment

It was a simple method! Thank you for your answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.