Replacing deprecated functions in ps execution module.

Audited `ps` module per #9301.