Task automation eases the administrator's workload, but the IT staff needs to be mindful of properly handling PowerShell credentials to avoid security issues. Let's say you need to retrieve the BIOS ...
You could add this as a parameter to your script if desired (i.e. prompt before you build up the GUI). On a side note: Execute PowerShell Script using alternate credential with no prompts (High risk ...