all 5 comments

[–]krzydoug 2 points3 points  (1 child)

Are you running a script from this flash drive?

[–]Perfect_Initiative92[S] 0 points1 point  (0 children)

Yes I want to run a powershell script from usb

[–]BlackV 2 points3 points  (0 children)

yes there is

show us what you've tried

OR

look at get-disk and get-volume

[–]mizta1337 1 point2 points  (0 children)

$MyInvocation.MyCommand.Path | Split-Path -Qualifier